/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.service;

import org.springblade.modules.admin.dto.platform.ApplicationElevatorDetailSearchDTO;
import org.springblade.modules.admin.dto.platform.ElevatorCheckDTO;
import org.springblade.modules.admin.entity.EstateApplicationElevator;
import org.springblade.modules.admin.vo.EstateApplicationElevatorVO;
import org.springblade.core.mp.base.BaseService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.modules.admin.vo.platform.ApplicationElevatorDetailVo;
import org.springblade.modules.admin.vo.platform.ApplicationElevatorStatusDetailVo;

import java.util.List;

/**
 * 物业项目关联申请记录电梯表 服务类
 *
 * @author ysq
 * @since 2022-05-27
 */
public interface IEstateApplicationElevatorService extends BaseService<EstateApplicationElevator> {

	/**
	 * 自定义分页
	 *
	 * @param page
	 * @param estateApplicationElevator
	 * @return
	 */
	IPage<EstateApplicationElevatorVO> selectEstateApplicationElevatorPage(IPage<EstateApplicationElevatorVO> page, EstateApplicationElevatorVO estateApplicationElevator);

	/**
	 * 获取已经申请关联过的电梯
	 * @return
	 */
	List<Long> getSelectedElevator();

	/**
	 * 获取申请的电梯信息
	 * @param applicationElevatorDetailSearchDTO 查询条件
	 * @return 数据集
	 */
	IPage<ApplicationElevatorDetailVo> list(ApplicationElevatorDetailSearchDTO applicationElevatorDetailSearchDTO);

	/**
	 * 获取申请的电梯信息
	 * 用户校验
	 * @param applicationElevatorDetailSearchDTO 查询条件
	 * @return 数据集
	 */
	IPage<ApplicationElevatorDetailVo> listV2(ApplicationElevatorDetailSearchDTO applicationElevatorDetailSearchDTO);

	/**
	 * 获取电梯的审核进度数量
	 * @param formId 申请id
	 * @return 数据集
	 */
	ApplicationElevatorStatusDetailVo getApplicationElevatorStatusDetail(Long formId);

	/**
	 * 更新审核状态
	 * @param elevatorCheckDTO 数据对象
	 * @return 数据集
	 */
	Boolean update(ElevatorCheckDTO elevatorCheckDTO);

}
